import request from '@/utils/request'
//收藏题目记录
export function getCollectionId() {
  return request({
    url: '/favor',
    method: 'get'
  })
}
//加入收藏
export function createCollection(id, problemUid, remark) {
  const data = {
    id,
    problemUid,
    remark,
  }
  return request({
    url: '/favor',
    method: 'post',
    data: data
  })
}
//删除收藏
export function deleteCollection(problemUid) {
  return request({
    url: `/favor/${problemUid}`,
    method: 'delete',
  })
}